
/*

Design Pattern Automation Toolkit.
Application to create applications with emphasis on Design patterns.
And support for round trip engineering.
Copyright (C) 2004 Vineeth Neelakant. nvineeth@gmail.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

*/
using System;
using System.Reflection;
using DesignPatternDefinitions;

namespace DotNetReverseEngineering
{
	/// <summary>
	/// Description of RevEnggInheritanceInfo.
	/// </summary>
	public class RevEnggInheritanceInfo : DesignPatternDefinitions.IInheritance
	{
		Type derType,baseType;
		public RevEnggInheritanceInfo(Type t1, Type t2)
		{
			this.derType=t1;
			this.baseType=t2;
		}
		public string BaseClassComponent
		{
			get
			{ 
				if(this.baseType.Namespace != null)
					return this.baseType.Namespace; 
				return DotNetReverseEngineer.DefaultNamespace;
			}
			set {}
		}
		public string BaseClass
		{
			get{ return this.baseType.Name; }
			set{}
		}
		public string DerivedClassComponent
		{
			get{ 
				if(this.derType.Namespace != null)
					return this.derType.Namespace; 
				return DotNetReverseEngineer.DefaultNamespace;
			}
			set{}
		}
		public string DerivedClass
		{
			get{return this.derType.Name;}
			set{}
		}
		
	}
}
